#define _CRT_SECURE_NO_WARNINGS
class Solution {
public:
    int exchangeBits(int num) {
        return ((num & 0xaaaaaaaa) >> 1) | ((num & 0x55555555) << 1);
    }
};
//0011 0011
//0110 0001
//0011